﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="bai_viet_category_level_1.ascx.cs" Inherits="bai_viet_category_level_1" %>

<link rel="Stylesheet" href="/Css/News.css" type="text/css"  />

<asp:ListView OnPagePropertiesChanging="pagerChanging" ItemPlaceholderID="item" ID="grdNews" runat="server">
    <LayoutTemplate>
        <div class="news_list">
            <div id="item" runat="server"></div>
        </div>
        
    </LayoutTemplate>
    <ItemTemplate>
        <div class="news_item">
            <table runat="server" id="item" cellpadding="0" cellspacing="5" border="0">
                    <tr valign="top">
                        <td><div class="img_border"><img  src='<%# Eval("NewsImage") %>' alt='<%# Eval("NewsTitle") %>' /></div></td>
                        <td>
                            <a title='<%# Eval("NewsTitle") %>' href='/bai-viet/<%# Eval("FunctionPageAlias").ToString().Trim() %>/<%# Eval("NewsAlias") %>.aspx'><%# Eval("NewsTitle") %></a><br/>
                            <span class="news_abstract"><%# Eval("NewsAbstract") %></span>
                        </td>
                    </tr>
            </table>
        </div>
    </ItemTemplate>
</asp:ListView>

<div class="pager">
    <asp:DataPager EnableViewState="true" PagedControlID="grdNews" runat="server" ID="pgnews"  PageSize="3">
        <Fields>
            <asp:NumericPagerField NumericButtonCssClass="page_number" CurrentPageLabelCssClass="current_page_number"/>
        </Fields>
    </asp:DataPager>
</div>
        
<asp:Repeater ID="grdNewsDetails" runat="server">
    <HeaderTemplate>
        <div>
    </HeaderTemplate>
    <ItemTemplate>
        <table width="450px" cellpadding="0" cellspacing="0">
            <tr valign="top">
                <td>
                     
                        <span class="news_title"><%# Eval("NewsTitle") %></span>
                </td>
            </tr>
            <tr>
                <td>
                    <div id="mycustomscroll " class="flexcroll news_area">  
                                <%# Eval("NewsContent") %>
                    </div>  
                </td>
            </tr>
        </table>
    </ItemTemplate>
    <FooterTemplate>
        </div>
        <br/>
        <span class="news_title">Tin tức khác</span>
        <div style="padding-left:10px;">
            <asp:DataList DataSource='<%# GetOtherNews() %>' ID="grdOtherNews" runat="server" > 
                <ItemTemplate>
                    <a class="other_news_title" title='<%# Eval("NewsTitle") %>' href='/bai-viet/<%# Eval("FunctionPageAlias").ToString().Trim() %>/<%# Eval("NewsAlias") %>.aspx'><%# Eval("NewsTitle") %></a>
                </ItemTemplate>
            </asp:DataList>
        </div>
    </FooterTemplate>
</asp:Repeater>

